package com.xiang.controller;

import com.xiang.annotation.RepeatSubmit;
import com.xiang.vo.OrderVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class TestController {

  @PostMapping("/test")
  @RepeatSubmit(interval = 1000 * 50,headers = {"Authorization","appId"})
  public String hello(@RequestBody OrderVO orderVO) {
    log.info("orderVO:  {}", orderVO);
    return "succ";
  }

}
